package sg.edu.nus.iss.vmcs.store;

/*
 * Copyright 2003 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */

/**
 * 
 * 
 * @version 3.0 5/07/2003
 * @author Olivo Miotto, Pang Ping Li
 */

public class StoreObject
{

    String name;

    public StoreObject()
    {
    }

    public StoreObject(String n)
    {
	name = n;
    }

    public String getName()
    {
	return name;
    }

    public void setName(String n)
    {
	name = n;
    }

    @Override
    public int hashCode()
    {
	return name.hashCode();
    }

    @Override
    public boolean equals(Object obj)    
    {	
	if (obj != null)
	{
	    StoreObject temp = (StoreObject) obj;
	    return this.name.equalsIgnoreCase(temp.name);
	} else
	    return false;
    }
}